package com.mapper;

import com.bean.ArticleContent;
import com.bean.ArticleInfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by Yuicon on 2016/11/9.
 */
public interface ArticleContentMapper {

    @Select("select id,aid,content from tb_articlecontent where aid = #{aid}")
    ArticleContent findByAid(String aid);

    @Insert("insert into tb_articlecontent (id,aid,content) values(#{id},#{aid},#{content})")
    void insert(ArticleContent articleContent);
}
